import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'bank/channelInfo/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	add (data) {
		return request({
			url: 'bank/channelInfo/add',
			headers: {},
			method: 'post',
			data,
		});
	},

	set (data) {
		return request({
			url: 'bank/channelInfo/edit',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'bank/channelInfo/get',
			headers: {},
			method: 'post',
			data,
		});
	},

	del (data) {
		return request({
			url: 'bank/channelInfo/del',
			headers: {},
			method: 'post',
			data,
		});
	},

	// 通道下拉框
	option (data) {
		return request({
			url: 'bank/channelInfo/options',
			headers: {},
			method: 'post',
			data,
		});
	},
	payOption(){
		// TODO 2021-1-31 支付类型
		return request({
			url: 'bank/channelInfo/payTypeOptions',
			headers: {},
			method: 'post',
		});
	},

	setmchConfig(data){
		return request({
			url: 'mchInfo/editConfig',
			headers: {},
			method: 'post',
			data,
		});
	},


	setTradeLimit (data) {
		return request({
			url: 'bank/channelInfo/setTradeLimit',
			headers: {},
			method: 'post',
			data,
		});
	},
};